/* 标签文章列表页专用样式 */
/* 图标字体 */
.icon-calendar::before { content: "📅"; }
.icon-folder::before { content: "📁"; }
.icon-tag::before { content: "🏷️"; }
.icon-eye::before { content: "👁️"; }
.icon-arrow-right::before { content: "→"; }
.icon-arrow-left::before { content: "←"; }
.icon-home::before { content: "🏠"; }
.icon-file::before { content: "📄"; }
/* 标签头部 */
.tag-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.tag-info {
    text-align: center;
}

.tag-title {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tag-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tag-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
}

.tag-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.tag-meta .meta-item i {
    font-size: 20px;
}

/* 文章列表容器 */
.article-list-container {
    padding: 0 0;
    background-color: #f8f9fa;
}

.article-list {
    margin-bottom: 40px;
}

/* 文章卡片 - 左侧图片右侧内容布局 */
.article-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    height: 280px;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 左侧图片区域 */
.article-image {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px 0 0 12px;
    margin: 15px 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}


/* 右侧内容区域 */
.article-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 文章头部信息 */
.article-header {
    margin-bottom: 20px;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: #3498db;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    font-size: 16px;
}

.meta-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #2980b9;
}

/* 文章摘要 */
.article-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章底部 */
.article-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: #e74c3c;
    text-decoration: none;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.page-item.active .page-link {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.page-item.disabled .page-link {
    color: #bdc3c7;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    margin: 0;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
}

/* 分类列表 */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #ecf0f1;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.category-list .count {
    color: #7f8c8d;
    font-size: 14px;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 标签云 */
.tag-cloud {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-item.active {
    background: #e74c3c;
    color: #fff;
}

.tag-item:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

/* 最新文章 */
.recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts li {
    border-bottom: 1px solid #ecf0f1;
    padding: 15px 25px;
    transition: background-color 0.3s ease;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts li:hover {
    background-color: #f8f9fa;
}

.recent-posts a {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #e74c3c;
}

.post-date {
    color: #7f8c8d;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tag-header {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    
    .tag-title {
        font-size: 28px;
    }
    
    .tag-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .tag-meta {
        gap: 20px;
        font-size: 14px;
    }
    
    .article-list-container {
        padding: 0 0 20px 0;
    }
    
    .article-header {
        padding: 20px 20px 15px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    .article-content {
        padding: 0 20px 15px;
    }
    
    .article-footer {
        padding: 0 20px 20px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .widget-title {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .category-list a,
    .recent-posts li {
        padding: 12px 20px;
    }
    
    .tag-cloud {
        padding: 20px;
    }
} 